package com.quickdev.intelligenthome.net.data
{
	import com.adobe.serialization.json.JSON;

	//消息基础类
	public class Base
	{
		//消息类型
		public var msgType :uint;
		//用户编号
		public var userNo :String;
		
		public function Base()
		{
		}
		
		public function encode() :String {
			var obj :Object = new Object();
			obj.msgType = msgType;
			obj.userNo = userNo;
			return JSON.encode( obj );
		}
	}
}